package com.smartgame.objects;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.smartgame.util.Assets;

/**
 * To be implemented.
 * 
 * @author richard
 *
 */
public class Cobweb extends AnimatedObject {

	public Cobweb(Texture animatedTexture) {
		super(animatedTexture);
		initObject();
	}

	public void initObject() {
		
	};

	@Override
	public void update(float deltaTime) {
		super.update(deltaTime);
		
		// my own update goes here!
	}

	@Override
	public void render(SpriteBatch batch) {
		// testing code
		Assets.instance.fonts.defaultBig.draw(
				batch, "touched at x=" + this.position.x + ", y=" + this.position.y, 
				Gdx.graphics.getWidth() / 2 - 100, Gdx.graphics.getHeight() / 2);
	}

	@Override
	public void reset() {
		
	}

	@Override
	protected void initCoefficient() {
		frameDuration = 0.025f;
		frameCols = 6;
		frameRows = 5;
	}

}
